package org.ipmsg.core.event;

import org.ipmsg.core.*;
import java.util.Date;
import java.util.EventObject;

public class MessageEvent extends EventObject {

    private Message message;
    private Member member;
    private Address address;
    private Date date;

    public MessageEvent(Object source, Message message, Member member, Address address) {
        super(source);
        this.message = message;
        this.member = member;
        this.address = address;
        date = new Date();
    }

    public Message getPack() {
        return message;
    }

    public Member getMember() {
        return member;
    }

    public Address getAddress() {
        return address;
    }

    public Date getDate() {
        return date;
    }
}
